import { createRouter, createWebHistory } from 'vue-router'
import Home from '../view/Home.vue'
import Main from '../view/Main.vue'
import SchemeConfig from '../view/SchemeConfig.vue'

const routes = [
  {
    path: '/',
    name: 'Home',
    children:[{
      path:'',
      name:'main',
      component:Main
    },{
      path:'scheme',
      name:'scheme',
      component:SchemeConfig
    },{
      path:'time_table',
      name:'time_table',
      component: ()=> import('../view/TimeTableConfig.vue')
    }],
    component: Home
  },
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router